// eslint-disable-next-line
import { UserLayout, BasicLayout, RouteView, BlankLayout, PageView } from '@/layouts'
import { bxAnaalyse } from '@/core/icons'

export const asyncRouterMap = []

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component:  (resolve) => require([/* webpackChunkName: "user" */ '@/views/user/Login'], resolve),
      },
      {
        path: 'register',
        name: 'register',
        component:  (resolve) => require([/* webpackChunkName: "user" */ '@/views/user/Register'], resolve),
      },
      {
        path: 'register-result',
        name: 'registerResult',
        component:  (resolve) => require([/* webpackChunkName: "user" */ '@/views/user/RegisterResult'], resolve),
      },
      {
        path: 'recover',
        name: 'recover',
        component: undefined
      }
    ]
  },

  {
    path: '/test',
    component: BlankLayout,
    redirect: '/test/home',
    children: [
      {
        path: 'home',
        name: 'TestHome',
        component:  (resolve) => require(['@/views/Home'], resolve),
      }
    ]
  },

  {
    path: '/404',
    component:  (resolve) => require([/* webpackChunkName: "fail" */ '@/views/exception/404'], resolve),
  },
  {
    path: '/distribution/workplace',
    component:  (resolve) => require([/* webpackChunkName: "fail" */ '@/views/distribution/workplace'], resolve),
  },
  {
    path: '/distribution/workplaceTwo',
    component:  (resolve) => require([/* webpackChunkName: "fail" */ '@/views/distribution/workplaceTwo'], resolve),
  },
	{
	  path: '/download/downloadapk',
	  name: 'downloadapk',
	  component:  (resolve) => require([/* webpackChunkName: "fail" */ '@/views/download/downloadapk'], resolve),
	},
]

